//
//  PrivateMsgDao.h
//  SportSocial
//
//  Created by yull on 15/1/4.
//  Copyright (c) 2015年 yull. All rights reserved.
//

#import "BaseDao.h"
#import "PrivateChatMsg.h"

@interface PrivateMsgDao : BaseDao

- (BOOL)checkExistWithChatMsg:(PrivateChatMsg *)chatMsg;

- (BOOL)updateChatMsg:(PrivateChatMsg *)chatMsg;

- (BOOL)insertPrivateChatMsg:(PrivateChatMsg *)privateChatMsg;

- (BOOL)updateSendStatusWithDbId:(UInt64)dbId status:(ChatMsgSendStatus)status;

- (BOOL)receivePrivateChatMsgArray:(NSArray *)chatMsgArray;

- (NSArray *)selectAllPrivateMsgArrayWithUser:(UInt64)userId;

- (NSArray *)selectHistoryPrivateMsgArrayWithUser:(UInt64)userId dbId:(UInt64)dbId;

- (BOOL)updateMsgId:(UInt64)msgId preview:(NSString *)preview original:(NSString *)original;

- (BOOL)updateReadWithDBId:(UInt64)dbId;

- (NSArray *)selectAllPicMsgWithUserId:(UInt64)userId;

- (BOOL)clearSendingMessageToFail;

- (BOOL)deleteAllMsgWithUserId:(UInt64)userId;

@end
